package de.hach.manno;

import android.app.Application;
import android.util.Log;

public class MannOApplication extends Application {
	private static final String TAG = "MannOApplication";
	private MannOData mannOData;
	private boolean serviceRunning;
	

	@Override
	public void onCreate() {
		super.onCreate();
		mannOData = new MannOData(this);		
		Log.i(TAG, "onCreate");

	}

	@Override
	public void onTerminate() {
		super.onTerminate();
		mannOData.close();
		Log.i(TAG, "onTerminate");
	}

	public MannOData getMannOData() {
		return mannOData;
	}

	public boolean isServiceRunning() {
		return serviceRunning;
	}

	public void setServiceRunning(boolean serviceRunning) {
		this.serviceRunning = serviceRunning;
	}

}
